<%@page import="com.nuaa.domain.ret.RetSupEntity"%>
<%@page import="com.nuaa.domain.ret.ReturnEntity"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%
	String contextPath = request.getContextPath();
	ReturnEntity retInfo = (ReturnEntity)request.getAttribute("retInfo");
	RetSupEntity retSupInfo = (RetSupEntity)request.getAttribute("retSupInfo");
	String filePath = request.getAttribute("filePath").toString();
%>
<jsp:include page="/WEB-INF/jsp/common/fadeout.jsp"></jsp:include>
<style scoped="scoped">
        .textbox{
            height:20px;
            margin:0;
            padding:0 2px;
            box-sizing:content-box;
        }
    </style>
<style type="text/css">
	table{
		font-size:25;
		font-family:sans-serif;
	}
	table tr td{
		align:left;
	}
</style>
<div id="ret_sup" class="easyui-layout" data-options="fit:true">  
<div data-options="region:'center',split:false" style="padding:10px;">
	<table align="center">
		<tr><td colspan="6" style="text-align:center;color:blue;font-weight:bold">订单明细</td></tr>
		<tr></tr>
		<tr>
			<td>订单编号</td>
			<td>&nbsp;<%=retInfo.getOrder_no()%></td>
			<td></td>
			<td></td>
			<td>客户编号</td>
			<td>&nbsp;<%=retInfo.getCustomer_no()%></td>
		</tr>
		<tr>
			<td>订单业务类型</td>
			<td>&nbsp;<%=retInfo.getBusiness_type()%></td>
			<td></td>
			<td></td>
			<td>下单时间</td>
			<td>&nbsp;<%=retInfo.getCreate_tm()%></td>
		</tr>
		<tr>
			<td>订单邮费</td>
			<td>&nbsp;<%=retInfo.getOrder_fee()==0?"未指定":retInfo.getLaborFee()%></td>
			<td></td>
			<td></td>
			<td>订单人工费</td>
			<td>&nbsp;<%=retInfo.getLaborFee()==null?"未指定":retInfo.getLaborFee()%></td>
		</tr>
		<tr>
			<td>订单状态</td>
			<td>&nbsp;
				<%
					int value = retInfo.getState();
				if(value==0)
	    			 out.print("待审核");
	    		 else if(value==1)
	    			 out.print("审核中");
	    		 else if(value==2)
	    			 out.print("收货中");
	    		 else if(value == 3)
	    			 out.print("处理中");
	    		 else if(value==4)
	    			 out.print("待付款");
	    		 else if(value==5)
	    			 out.print("发货中");
	    		 else if(value==6)
	    			 out.print("完成");
	    		 else
	    			 out.print("状态出错");
				%>
			</td>
			<td></td>
			<td></td>
			<td></td>
			<td>&nbsp;</td>
		</tr>
		<tr>
    		<td><label for="repack">美国本土退货地址</label></td>  
        	<td>
        		&nbsp;<%=retInfo.getUsa_local()==0?"是":"否"%>	
			 </td> 
			 <td></td> <td></td>
			 <td>月平均退货件数</td><td>&nbsp;<%=retInfo.getMon_total()%></td>
    	</tr>
		<tr>
			<td>退货种类数</td><td>&nbsp;<%=retInfo.getType_numbers()%></td>
			<td></td><td></td>
			<td>平均尺寸</td>
			<td  colspan="4">&nbsp;长&nbsp; <%=retInfo.getPro_length()%>
				&nbsp;&nbsp;宽
			     &nbsp;<%=retInfo.getPro_width()%>&nbsp;&nbsp;
			       高&nbsp;<%=retInfo.getPro_height()%>&nbsp;&nbsp;(单位：CM)</td>
		</tr>
		<tr></tr>
		<tr>
    		<td><label for="repack">开包检查</label></td>  
        	<td>
        		&nbsp;<%=retInfo.getIf_check()==0?"是":"否"%>	
			 </td> 
			 <td></td><td></td>
    		<td><label for="repack">故障排查</label></td>  
        	<td>
        		&nbsp;<%=retInfo.getBreak_check()==0?"是":"否"%>	
			 </td> 
    	</tr>
    	<tr></tr>
		<tr>
    		<td><label for="repack">坏品处理</label></td>  
        	<td>
        		&nbsp;<%=retInfo.getBad_handle()==0?"是":"否"%>	
			 </td> 
    		<td></td><td></td>
    		<td><label for="repack">计价方式</label></td>  
        	<td>
        		&nbsp;<%=retInfo.getEva_method()==0?"包月":"按件数"%>	
			 </td> 
    	</tr>
		<tr><td colspan="6"><hr/></td></tr>
		<tr><td colspan="6" style="text-align:center;color:blue;font-weight:bold">所上传补充文档</td></tr>
		<tr></tr>
		<tr>
			<td>发货货物物流单号表</td>
			<td align="center">
				<% if(retSupInfo != null && retSupInfo.getRet_remove_logis_name()!=null&&!retSupInfo.getRet_remove_logis_name().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+retSupInfo.getRet_remove_logis_name()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
			<td></td><td></td>
			<td>退货发货的数量明细表</td>
			<td align="center">
				<% if(retSupInfo != null && retSupInfo.getRet_deliver_number_name()!=null&& !retSupInfo.getRet_deliver_number_name().isEmpty()){
				out.print("<a target='_blank' href='"+filePath+retSupInfo.getRet_deliver_number_name()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
		</tr>
		<tr>
			<td>退货处理操作说明</td>
			<td align="center">
				<% if(retSupInfo != null && retSupInfo.getRet_handle_name()!=null&& !retSupInfo.getRet_handle_name().isEmpty()){
				out.print("<a target='_blank' href='"+filePath+retSupInfo.getRet_handle_name()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
			<td></td><td></td>
			<td>退货的检测方法</td>
			<td align="center">
				<% if(retSupInfo != null && retSupInfo.getRet_check_method_name()!=null&& !retSupInfo.getRet_check_method_name().isEmpty()){
				out.print("<a target='_blank' href='"+filePath+retSupInfo.getRet_check_method_name()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
		</tr>
		<tr>
			<td>退货的寄送地址</td>
			<td align="center">
				<% if(retSupInfo != null && retSupInfo.getRet_address()!=null&& !retSupInfo.getRet_address().isEmpty()){
				out.print("<a target='_blank' href='"+filePath+retSupInfo.getRet_address()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
			<td></td><td></td>
			<td>其它文档资料1</td>
			<td align="center">
				<% if(retSupInfo != null && retSupInfo.getOther_file()!=null&& !retSupInfo.getOther_file().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+retSupInfo.getOther_file()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
		</tr>
		<tr>
			<td>其它文档资料2</td>
			<td align="center">
				<% if(retSupInfo != null && retSupInfo.getOther_file2()!=null&& !retSupInfo.getOther_file2().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+retSupInfo.getOther_file2()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
			<td></td><td></td>
			<td>其它文档资料3</td>
			<td align="center">
				<% if(retSupInfo != null && retSupInfo.getOther_file3()!=null&& !retSupInfo.getOther_file3().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+retSupInfo.getOther_file3()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
		</tr>
		<tr>
			<td>其它文档资料4</td>
			<td align="center">
				<% if(retSupInfo != null && retSupInfo.getOther_file4()!=null&& !retSupInfo.getOther_file4().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+retSupInfo.getOther_file4()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
		</tr>
		<tr><td colspan="6"><hr/></td></tr>
		<tr><td colspan="6" style="text-align:center;color:blue;font-weight:bold">管理员上传文档</td></tr>
		<tr>
			<td>收货统计表</td>
			<td align="center">
				<% if(retInfo != null && retInfo.getRec_tab_name()!=null&&!retInfo.getRec_tab_name().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+retInfo.getRec_tab_name()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
		<td></td><td></td>
			<td>到货数量统计表</td>
			<td align="center">
				<% if(retInfo != null && retInfo.getArr_tab_name()!=null&&!retInfo.getArr_tab_name().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+retInfo.getArr_tab_name()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
		</tr>
		<tr>
			<td>退货检测结果表</td>
			<td align="center">
				<% if(retInfo != null && retInfo.getCheck_result_tab_name()!=null&&!retInfo.getCheck_result_tab_name().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+retInfo.getCheck_result_tab_name()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
			<td></td><td></td>
			<td>退货报废表</td>
			<td align="center">
				<% if(retInfo != null && retInfo.getRet_scrap_tab_name()!=null&& !retInfo.getRet_scrap_tab_name().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+retInfo.getRet_scrap_tab_name()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
		</tr>
		<tr>
			<td>退货费用和邮费表</td>
			<td align="center">
				<% if(retInfo != null && retInfo.getRet_fee_tab_name()!=null&& !retInfo.getRet_fee_tab_name().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+retInfo.getRet_fee_tab_name()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
		<td></td><td></td>
			<td>发货物流单号表</td>
			<td align="center">
				<% if(retInfo != null && retInfo.getLogis_tab_name()!=null&& !retInfo.getLogis_tab_name().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+retInfo.getLogis_tab_name()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
		</tr>
		<tr>
			<td>退货表格模版</td>
			<td align="center">
				<% if(retInfo != null && retInfo.getRet_model_name()!=null&& !retInfo.getRet_model_name().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+retInfo.getRet_model_name()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
			<td></td>
			<td></td>
			<td>其它文档1</td>
			<td align="center">
				<% if(retInfo != null && retInfo.getOther_file1()!=null&& !retInfo.getOther_file1().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+retInfo.getOther_file1()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
		</tr>
		<tr>
			<td>其它文档2</td>
			<td align="center">
				<% if(retInfo != null && retInfo.getOther_file2()!=null&& !retInfo.getOther_file2().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+retInfo.getOther_file2()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
			<td></td>
			<td></td>
			<td>其它文档3</td>
			<td align="center">
				<% if(retInfo != null && retInfo.getOther_file3()!=null&& !retInfo.getOther_file3().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+retInfo.getOther_file3()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
		</tr>
		<tr>
		<td>其它文档4</td>
			<td align="center">
				<% if(retInfo != null && retInfo.getOther_file4()!=null&& !retInfo.getOther_file4().isEmpty()){
					out.print("<a target='_blank' href='"+filePath+retInfo.getOther_file4()+"'>点击查看</a>");
				}else{
					out.print("<b style='color:red'>未上传</b>");
				}%>
			</td>
		</tr>
	</table>
</div>
<!-- 	<div data-options="region:'south',split:false" style="height:60px;background:#95B8E7;text-align:center;padding:10px;"> -->
<!-- 		<a id="ret_detail_btn" href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-ok'">关闭</a> -->
<!-- 	</div>  -->
</div>
<script>
	$("#ret_detail_btn").click(function(){
		$("#ret_detail_dialog").dialog('close');
		$("#my_return_order_datagrid").datagrid('uncheckAll');
	});
</script>
